/**
 * 获取知识文章请求参数
 */
export interface IGetKnowledgeRequest {
  type: string; // recommend:推荐, fatReduction:减脂, food:健康饮食, like:关注医生页面文章
  current: number; // 当前页码
  pageSize: number; // 每页数量
}

/**
 * 知识文章项
 */
export interface IKnowledgeItem {
  id: string;
  title: string;
  coverUrl: string[];
  topics: string[];
  collectionNumber: number;
  commentNumber: number;
  creatorName: string;
  creatorAvatar: string;
  creatorHospatalName: string;
  creatorTitles: string;
  creatorDep: string;
  creatorId: string;
  likeFlag: number;
  content: string;
}

/**
 * 获取知识文章响应
 */
export interface IGetKnowledgeResponse {
  code: number;
  success: boolean;
  message: string;
  data: {
    pageTotal: number;
    total: number;
    rows: IKnowledgeItem[];
  };
}